// import './assets/main.css'
import '@/assets/style/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import axios from 'axios'
import VueAxios from 'vue-axios'

const app = createApp(App)
// 注册element-plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
/** vjsf 使用 */
import { ElButton, ElForm, ElFormItem, ElInput, ElSelect, ElRadioGroup, ElRadio } from 'element-plus'
app.use(ElButton)
app.use(ElForm)
app.use(ElFormItem)
app.use(ElInput)
app.use(ElSelect)
app.use(ElRadioGroup)
app.use(ElRadio)
app.use(VueAxios, axios)
app.use(ElementPlus)
app.use(createPinia())
app.use(router)

app.mount('#app')
